﻿using System.Data.Entity.ModelConfiguration;
using Core.Model;

namespace Infrastructure.Configurations
{
    public class CategoryConfiguration : EntityTypeConfiguration<Category>
    {
        public CategoryConfiguration()
        {
            HasKey(cat => cat.CategoryId);
            Property(cat => cat.CategoryId).HasMaxLength(10);
            Property(cat => cat.Name).HasMaxLength(80);
            Property(cat => cat.Description).HasMaxLength(255);
            Property(cat => cat.BannerData).HasMaxLength(255);
        }
    }
}